package com.travel.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.travel.domain.entity.Image;
import com.travel.domain.entity.Scene;
import com.travel.domain.entity.SceneInfo;
import com.travel.mapper.IndexMapper;
import com.travel.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexServiceImpl extends ServiceImpl<IndexMapper, Image> implements IndexService {
    @Autowired
    private IndexMapper indexMapper;

    @Override
    public List<Scene> selectAllScene() {
        return indexMapper.selectAllScene();
    }

    @Override
    public SceneInfo selectSceneInfo(Long id) {
        return indexMapper.getSceneInfo(id);
    }
}
